//
//  LargeTitle.m
//  FbeeAPP
//
//  Created by dev-m on 2018/3/5.
//  Copyright © 2018年 mohao. All rights reserved.
//

#import "LargeTitle.h"

@interface LargeTitle()
{
    UILabel *titleL;
}
@end

@implementation LargeTitle

-(instancetype)initWithTitle:(NSString *)title
{
    self = [super initWithFrame:CGRectMake(0, 0, IPHONEWIDTH, NavBarHeight + 50)];
    
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        titleL = [UILabel makeLabel:^(TTLabelExtend *make) {
            make.setFrame(CGRectMake(16, NavBarHeight, IPHONEWIDTH-16, 50));
            make.addText(title);
            make.addFont([UIFont boldSystemFontOfSize:34.0f]).addTextColor(FBEE_COLOR_LARGETITLE);
            [self addSubview:make];
        }];
    }
    
    return self;
}

-(void)setTitle:(NSString *)title
{
    titleL.text = title;
}

-(void)setTitleColor:(UIColor *)color
{
    titleL.textColor = color;
}

@end
